<!DOCTYPE html>
<html>
<#include "../head.html">
<body class="full">
<div class="mc">
    <div class="mc-l">
        <!--左侧导航---{-->
        <div id="navPanelContainer">
            <div class="system-logo cd"></div>
            <!--管理员信息---{-->
            <#include "../adminInfo.html">
                <!--管理员信息---}-->
                <div class="nav-wrap">
                    <#include "leftForSaBorrow.html">
                </div>
        </div>
        <!--左侧导航---}-->
    </div>
    <div class="mc-m">
        <div class="navToggle"></div>
    </div>
    <div class="mc-r">
        <!--顶部导航---{-->
        <#include "../topNav.html">
            <!--顶部导航---}-->

            <!--面包屑导航---{-->
            <#assign moduleName="所有借款标">
                <#include "banner.html">
                    <!--面包屑导航---}-->

                    <!--工具栏--{-->
                    <div id="toolbar" class="clearfix">
                        <#if param??&&param.status??>
                            <#assign status=(param.get("status"))?number >
                                <#else>
                                    <#assign status=-1>
                        </#if>
                        <div class="toolbor-module search">
                            <input type="button" value="搜索"  class="input-button" onclick="sousuo();">
                        </div>

                        <div class="toolbor-module search">
                            <div class="formTit">资产管理公司：</div>
                            <div class="select-box" id="fid">
                                <div class="tag-select">全部</div>
                                <ul class="tag-options">
                                    <li data-value="" >全部</li>
                                    <#if fList??>
                                        <#list fList as item>
                                            <li data-value="${item.id?c}" >${item.name}</li>
                                        </#list>
                                    </#if>
                                </ul>
                            </div>
                        </div>

                        <div class="toolbor-module search">
                            <div class="formTit">状态：</div>

                            <div class="select-box" id="status">
                                <div class="tag-select">全部</div>
                                <ul class="tag-options">
                                    <li data-value="" >全部</li>
                                    <li data-value="0" >等待初审</li>
                                    <li data-value="1" >初审通过</li>
                                    <li data-value="2" >等待复审</li>
                                    <li data-value="3" >复审通过</li>
                                    <li data-value="4" >复审未通过</li>
                                    <li data-value="59" >用户取消</li>
                                    <li data-value="6" >放款成功</li>
                                    <li data-value="7" >部分还款</li>
                                    <li data-value="8" >还款成功</li>
                                    <li data-value="99" >易极付处理失败</li>
                                    <li data-value="21" >用户撤回</li>
                                    <li data-value="22" >资产管理公司撤回</li>
                                    <li data-value="23" >钱内助撤回</li>
                                    <li data-value="24" >到期未满撤回</li>
                                </ul>
                            </div>

                        </div>
                        <div class="toolbor-module search">
                            <div class="formTit">类型：</div>
                            <div class="select-box" id="type">
                                <div class="tag-select">全部</div>
                                <ul class="tag-options">
                                    <li data-value="">全  部</li>
                                    <li data-value="101">秒还标</li>
                                    <li data-value="102">信用标</li>
                                    <li data-value="103">抵押标</li>
                                    <li data-value="110">流转标</li>
                                </ul>
                            </div>
                        </div>

                        <div class="toolbor-module search">
                            <div class="formTit">用户名：</div>
                            <input type="text" name="username" id="username" value="请输入用户名"  class="search-value">
                        </div>


                    </div>
                    <!--工具栏--}-->

                    <div id="main" class="clearfix">
                        <form action="" method="post">
                            <table class="data-list">
                                <tr class="header">
                                    <td>ID</td>
                                    <td>用户名称</td>
                                    <td>真实姓名</td>
                                    <td>资产管理公司</td>
                                    <td>借款标题</td>
                                    <td>借款金额</td>
                                    <td>最小认购单位</td>
                                    <td>利率</td>
                                    <td>借款期限</td>
                                    <td>发布时间</td>
                                    <#-- <td>投标记录</td> -->
                                    <td>状态</td>
                                    <td>操作</td>
                                </tr>
                                <#import "../../common/function.html" as func>
                                    <#list list as item>
                                        <tr class="s">
                                            <td>${(item.id!)?c}</td>
                                            <td>${item.user.showName!}</td>
                                            <td>${item.user.realName!}</td>
                                            <td>${item.franchisee.name!}</td>
                                            <td title="${item.name}" class="tal">
                                                <span style="color:#FF0000">【<@func.borrowTypeName item=item />】</span>
                                                <p>${item.name!}</p>
                                            </td>
                                            <td>${item.account!0}元</td>
                                            <#if item.type==110>
                                                <td>${item.flowMoney!0}元</td>
                                                <#else>
                                                    <td>${item.lowestAccount!0}</td>
                                            </#if>

                                            <td>${item.apr!}%</td>
                                            <td><#if item.isday==1>${item.timeLimitDay!"-"}天<#else>${item.timeLimit!"-"}个月</#if></td>
                                            <td>${item.addtime?string("yyyy-MM-dd HH:mm:ss")!}</td>
                                            <#assign status=item.status!(-1)>
                                                <td><@func.statusTypeName status=item.status type=item.type /></td>
                                                <td>
                                                    <dd><a class="un" href="${request.getContextPath()}/admin/borrow/viewBorrow.html?id=${item.id?c}" >查看</a></dd>
                                                    <dd><a class="un" href="${request.getContextPath()}/admin/operate/editBorrow.html?id=${item.id?c}" >编辑</a></dd>
                                                </td>
                                        </tr>
                                    </#list>
                            </table>
                        </form>

                        <!--底部工具栏--{-->
                        <div id="bottomToolbar" class="clearfix">
                            <div class="other-tool">
                                <dl class="refresh-data">
                                    <dt class="refresh-data-icon"></dt>
                                    <dd><a href="javascript:void(0);" class="refresh-page">刷新数据</a></dd>
                                </dl>
                            </div>

                            <!--翻页系统--{-->
                            <div class="container s_formPage">
                                <#import "../../common/page.html" as pager>
                                    <@pager.pagination page=page url="${pageUrl}" map=param style="style1" />
                            </div>
                            <!--翻页系统--}-->
                        </div>
                        <!--底部工具栏--}-->

                        <script>
                            var urls = '?search=true';
                            function sousuo(){
                                var sou = "";
                                var username = $("#username").val();
                                if (username!=null&&username!=""&&username!="undefine"&&username!="请输入用户名"){
                                    sou += "&username="+username;
                                }
                                var dotime1 = $("#dotime1").val();
                                var dotime2 = $("#dotime2").val();
                                var account_type = $("#account_type").val();

                                if (dotime1!=null){
                                    sou += "&dotime1="+dotime1;
                                }
                                if (dotime2!=null){
                                    sou += "&dotime2="+dotime2;
                                }
                                var type = $("#type").find(".open-selected").attr("data-value");
                                if(type!=null&&type!=""&&type!="undefine"){
                                    sou += "&type="+type;
                                }
                                var status = $("#status").find(".open-selected").attr("data-value");
                                if (status!=null&&status!=""&&status!="undefine"){
                                    sou += "&status="+status;
                                }
                                var recommendStatus = $("#recommendStatus").find(".open-selected").attr("data-value");
                                if (recommendStatus!=null&&status!=""&&recommendStatus!="undefine"){
                                    sou += "&recommendStatus="+recommendStatus;
                                }
                                var fid = $("#fid").find(".open-selected").attr("data-value");
                                if (fid!=null&&fid!=""&&fid!="undefine"){
                                    sou += "&fid="+fid;
                                }
                                var url=urls+sou
                                location.href=url;
                            }
                        </script>
                    </div>
    </div>
</div>
<div class="mc-b"><#include "../foot.html"></div>
<#include "../jsPage.html">
</body>
</html>

